<%--
  Created by IntelliJ IDEA.
  User: ememory
  Date: 05.Oca.2011
  Time: 17:05:22
  To change this template use File | Settings | File Templates.
--%>


<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>BoB Events</title>
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/1.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/2.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/3.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/4.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/5.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/6.css" />
<link type="text/css" rel="stylesheet" href="/bob-web/CSS/7.css" />
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/3c-lcrc-static-pp-layout.css" />
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/3c-lcrc-static-pp-presentation.css" />
<link rel="stylesheet" type="text/css" href="/bob-web/CSS/2FEu-VTjHxG.css" />

    <script src="/bob-web/CSS/jquery-1.2.2.pack.js" type="text/javascript"></script>
    <link href="/bob-web/CSS/facebox.css" media="screen" rel="stylesheet" type="text/css" />
    <script src="/bob-web/CSS/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox()
    })
</script>
</head>
<body class="profile">
<!-- left column -->
<div id="lh-col"><br />
  <%@ include file="/WEB-INF/jsp/leftScreen.jsp" %>
</div>
<!-- end of left column -->
<!-- center column -->
    <!-- Tabs -->
    <%@ include file="/WEB-INF/jsp/tabs.jsp" %>
    <!-- End of tabs -->


  <div>





    <table style="width:100%;text-align:left">
      <tr height="50">
      <td>
          <h2>Events of ${model.user.name} ${model.user.surname}</h2>
      </td>
      </tr>
        <tr>
            <td>
                <table>
                    <c:choose>
<c:when test="${fn:length(model.userEvents)==0}">
    <tr>
        <td colspan="3">
                There are no events for this user.
      </td>
    </tr>
</c:when>
<c:otherwise>
                    <c:forEach items="${model.userEvents}" var="event">
          <tr>
            <td>
                <img class="img" width="20" height="20" src="/bob-web/user_images/no_photo.jpg">
            </td>
            <td><a href="/bob-web/service/event.htm?event_id=${event.eventId}"> ${event.eventName}</a><br></td>
          </tr>
        </c:forEach>
</c:otherwise>
                    </c:choose>
                </table>
            </td>
        </tr>
    </table>
  </div>
</div>
<!-- end of center column -->
<!-- right column -->
<div id="rh-col"> <a href="/bob-web/service/homePage.htm"><img border="0" src="/bob-web/Images/logo.png" alt="BookOfBoun" width="180" height="100" /></a>
  <%@ include file="/WEB-INF/jsp/rightScreen.jsp" %>
</div>
<!-- end of right column -->
</body>
</html>